package com.landeqing.service.impl;

import com.landeqing.dao.BanJiDao;
import com.landeqing.model.BanJi;
import com.landeqing.service.BanJiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class BanJiServiceImpl implements BanJiService {
    @Autowired
    private BanJiDao banJiDao;

    public void setBanJiDao(BanJiDao banJiDao) {
        this.banJiDao = banJiDao;
    }

    public BanJiDao getBanJiDao() {
        return banJiDao;
    }

    public List<BanJi> getList() {
        return banJiDao.getList();
    }

    public BanJi getBanJiId(Integer id) {
        return banJiDao.getBanJiId(id);
    }
}
